<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>视频播放</title>
    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link href="<%=path %>/resources/css/system/base.css" rel="stylesheet" type="text/css" />	
	<link href="<%=path %>/resources/css/system/index.css" rel="stylesheet" type="text/css" />
	<link href="<%=path %>/resources/script/videoManage/video-js.css" rel="stylesheet" type="text/css" />
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/videoManage/video.js"></script>
	<%-- <script type="text/javascript" src="<%=path%>/resources/script/videoManage/html5media.min.js"></script> --%>
	<script>
   	 videojs.options.flash.swf = path + "/resources/script/videoManage/video-js.swf";
	</script>
	<style type="text/css">
	#dv{margin: 0 auto; padding: 0 auto;}
	</style>
  </head>
  
  <body class="easyui-layout" style="width: 100%; height: 100%; background-color: black;">
  	<div id="dv">
  		<%-- <video class="video" poster="/atta/upload/atta/20160829/xp.jpg" width="618" height="347" controls preload>
			<source src="${filePath }" media="only screen and (min-device-width: 568px)"></source>
		</video> --%>
		<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="500" height="350"
    		poster="${imgPath }" data-setup="{}">
    		<source src="${filePath }" type="${type }"/>
  		</video>
  	</div>
   </body> 
   <!-- 设置自动播放 -->
   <!-- <script type="text/javascript">
	    var myPlayer = videojs('example_video_1');
	    videojs("example_video_1").ready(function(){
	        var myPlayer = this;
	        myPlayer.play();
	    });
	</script> -->
</html>
